﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Example2.Model
{
    class Player
    {

        float m_position = 0.5f;
        float m_speed = 0.5f;

        internal float GetPosition()
        {
            return m_position;
        }

        internal void Update(float a_elapsedTime)
        {
            //integrate position
            m_position = m_position + m_speed * a_elapsedTime;

        }


        internal void SetPosition(float a_x)
        {
            m_position = a_x;
            
        }

    }
}
